package com.csair.seam.domain.model.enums;

import lombok.Getter;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
public enum VisitsModule {
	MY_EQUIP("my_equip","我的设备")
	,
	MY_EQUIP_QUERY("my_equip_query","我的设备——查询")
	,
	ASSET_INVENTORY("asset_inventory","资产盘点")
	,
	ASSET_INVENTORY_QUERY("asset_inventory_query","资产盘点-查询")
	,
	ASSET_INVENTORY_QUERY_CHECKED("asset_inventory_query","资产盘点-已盘点")
	,
	ASSET_INVENTORY_MATCH("asset_inventory_match","资产盘点-相符")
	,
	ASSET_INVENTORY_UNMATCH("asset_inventory_unmatch","资产盘点-不符")
	,
	ASSET_INVENTORY_REVOKE("asset_inventory_revoke","资产盘点-撤回")
	,
	SHARING_CENTER("sharing_center","闲置共享中心")
	,
	SHARING_CENTER_QUERY("sharing_center_query","闲置共享中心-查询")
	,
	SHARING_CENTER_MYFOLLOW("sharing_center_myfollow","闲置共享中心-我的收藏")
	,
	ASSET_STATISTICS_OVERVIEW("asset_statistics_overview","资产统计概览")
	,
	ASSET_STATISTICS_OVERVIEW_QUERY("asset_statistics_overview_query","资产统计概览-查询")
	,
	ASSET_STATISTICS_OVERVIEW_EXPORT("asset_statistics_overview_export","资产统计概览-导出")
	,
	ASSET_CATEGORY_STATISTICS("asset_category_statistics","资产分类统计")
	,
	ASSET_CATEGORY_STATISTICS_QUERY("asset_category_statistics_query","资产分类统计-查询")
	,
	ASSET_CATEGORY_STATISTICS_EXPORT("asset_category_statistics_export","资产分类统计-导出")
	,
	ADD_SCRAP_STATISTICS("add_scrap_statistics","新增报废统计")
	,
	ADD_SCRAP_STATISTICS_QUERY("add_scrap_statistics_query","新增报废统计-查询")
	,
	ADD_SCRAP_STATISTICS_EXPORT("add_scrap_statistics_export","新增报废统计-导出")
	,
	ASSET_CHANGE_STATISTICS("asset_change_statistics","资产变动统计")
	,
	ASSET_CHANGE_STATISTICS_QUERY("asset_change_statistics_query","资产变动统计-查询")
	,
	ASSET_CHANGE_STATISTICS_EXPORT("asset_change_statistics_export","资产变动统计-导出")
	,
	VEHICLE_LOSS_STATISTICS("Vehicle_Loss_Statistics","车辆运行统计")
	,
	VEHICLE_LOSS_STATISTICS_QUERY("Vehicle_Loss_Statistics_query","车辆运行统计-查询")
	,
	VEHICLE_LOSS_STATISTICS_GENERAL_EXPORT("Vehicle_Loss_Statistics_general_export","车辆运行统计-通用车辆-导出")
	,
	VEHICLE_LOSS_STATISTICS_SPECIAL_EXPORT("Vehicle_Loss_Statistics_special_export","车辆运行统计-特种车辆-导出")
	,
	VEHICLE_SITUATION_STATISTICS("vehicle_situation_statistics","车辆总体情况")
	,
	VEHICLE_SITUATION_STATISTICS_QUERY("vehicle_situation_statistics_query","车辆总体情况-查询")
	,
	VEHICLE_SITUATION_STATISTICS_EXPORT("vehicle_situation_statistics_export","车辆总体情况-导出")
	,
	FA_ASSET_DEPRECIATION("fa_asset_depreciation","固定资产折旧统计")
	,
	FA_ASSET_DEPRECIATION_QUERY("fa_asset_depreciation_query","固定资产折旧统计-查询")
	,
	FA_ASSET_DEPRECIATION_EXPORT("fa_asset_depreciation_export","固定资产折旧统计-导出")
	,
	MARKET_ACCOUNTING("market_accounting","市场化核算")
	,
	MARKET_ACCOUNTING_QUERY("market_accounting_query","市场化核算-查询")
	,
	MARKET_ACCOUNTING_EXPORT("market_accounting_export","市场化核算-导出")
	,
	FA_EQUIP_MONITOR("fa_equip_monitor","转固设备监测")
	,
	FA_EQUIP_MONITOR_QUERY("fa_equip_monitor_query","转固设备监测-查询")
	,
	FA_EQUIP_MONITOR_EXPORT("fa_equip_monitor_export","转固设备监测-导出")
	,
	FA_MATCH_ANALYSIS("fa_match_analysis","账实相符率综合分析")
	,
	FA_MATCH_ANALYSIS_QUERY("fa_match_analysis_query","账实相符率综合分析-查询")
	,
	FA_MATCH_ANALYSIS_EXPORT("fa_match_analysis_export","账实相符率综合分析-导出")
	,
	IDLE_RECEIVE_QUERY("idle_receive_query","闲置资产-查询")
	,
	IDLE_RECEIVE_IMPORT("idle_receive_import","闲置资产-导入")
	,
	IDLE_RECEIVE_EXPORT("idle_receive_export","闲置资产-导出")
	;
	private String code;
	
	private String name;

	private Map<String, List<String>> type = new HashMap<>();
	VisitsModule(String code,String name){
		this.code = code;
		this.name = name;
	}

	public Map<String, List<String>> getType(){
		if(!type.isEmpty()){
			return type;
		}
		List<String> code = new ArrayList<>();
		code.add(VisitsModule.ASSET_INVENTORY.code);                   //资产盘点
		code.add(VisitsModule.ASSET_INVENTORY_QUERY.code);
		code.add(VisitsModule.ASSET_INVENTORY_QUERY_CHECKED.code);
		code.add(VisitsModule.ASSET_INVENTORY_MATCH.code);

		return type;

	}
}
